//搜索模型
class SearchModel {
  final List<SearchItem> data;
  String keyword;

  SearchModel({this.data});

  factory SearchModel.fromJson(Map<String, dynamic> json) {
    var dataJson = json["data"] as List;
    List<SearchItem> data =
        dataJson.map((i) => SearchItem.fromJson(i)).toList();
    return SearchModel(data: data);
  }
}

class SearchItem {
  final String word;
  final String type;
  final String price;
  final String star;
  final String zoneName;
  final String districtName;
  final String url;

  SearchItem(
      {this.word,
      this.type,
      this.price,
      this.star,
      this.zoneName,
      this.districtName,
      this.url});

  factory SearchItem.fromJson(Map<String, dynamic> json) {
    return SearchItem(
      word: json["word"],
      type: json["type"],
      price: json["price"],
      star: json["star"],
      zoneName: json["zoneName"],
      districtName: json["districtName"],
      url: json["url"],
    );
  }
}
